<!DOCTYPE html>
<html lang="en">
    
<head>
        <title>无界投融后台管理系统</title><meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="css/bootstrap.min.css" />
		<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="css/matrix-login.css" />
        <link href="font-awesome/css/font-awesome.css" rel="stylesheet" />
    </head>
    <body>
        <div id="loginbox">
				 <div class="control-group normal_text"> <h3><img src="img/logo.png" alt="Logo" /></h3></div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"></i></span><input type="text" name="username" placeholder="Username" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input type="password" name="password"  placeholder="Password" />
                        </div>
                    </div>
                </div>
                 <input type="hidden" name="_token" value="{{ csrf_token() }}">
                <div class="form-actions">
                    <span class="pull-right"><a type="submit" href="javascript:void(0)" class="btn btn-success" /> 登陆</a></span>
                </div>
        
        </div>
        
        <script src="js/jquery.min.js"></script>  
        <script src="js/matrix.login.js"></script> 
        <script src="js/common.js"></script> 
        <script>
		$('.btn-success').click(function(){
			var url="{{URL('auth/login')}}";
			var username=$('input[name="username"]').val();
			var password=$('input[name="password"]').val();
			var param={};
			param['username']=username;
			param['password']=password;
			ajaxRequest(param,url,function(data){
				if(data.status){
					window.location.href=data.forwardUrl;
				}else{
					alert(data.message);
				}
				});
			return false;
			});
        </script>
    </body>

</html>
